﻿using GrainManage.Web.Resources;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace GrainManage.Web.Models.Price
{
    public class AddPriceModel
    {
        [Required(ErrorMessageResourceType = typeof(PriceResx), ErrorMessageResourceName = "GrainRequired")]
        [Display(ResourceType = typeof(PriceResx), Name = "Grain")]
        public string Grain { get; set; }

        [Required(ErrorMessageResourceType = typeof(PriceResx), ErrorMessageResourceName = "UnitPriceRequired")]
        [Display(ResourceType = typeof(PriceResx), Name = "UnitPrice")]
        public decimal UnitPrice { get; set; }

        [Required(ErrorMessageResourceType = typeof(PriceResx), ErrorMessageResourceName = "PriceTypeRequired")]
        [Display(ResourceType = typeof(PriceResx), Name = "PriceType")]
        public string PriceType { get; set; }

        [Display(ResourceType = typeof(PriceResx), Name = "Remarks")]
        public string Remarks { get; set; }
    }
}